package com.tqw.shipping.feign;

import com.tqw.entity.Result;
import com.tqw.vo.ShippingVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: czm
 * @Date: 2022/04/07/23:24
 * @Description:
 */
@FeignClient(name = "tqw-shipping",contextId = "shippingServer")
public interface ShippingFeignClient {

    @GetMapping("/shipping/findList")
    Result<List<ShippingVO>> list(@RequestParam("clientId") Integer clientId);


    @GetMapping("/shipping/findOneAddr")
    Result<ShippingVO> getInfoById(@RequestParam("Id") Integer id,@RequestParam("clientId")  Integer clientId);



}
